<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
<!--    <script type="text/javascript" src="/admin/static/myfolder/js/vcr/webrtcstreamer.js"></script>-->
    <script>
        // var url = location.search; //这一条语句获取了包括问号开始到参数的最后，不包括前面的路径
        // var params = url.substr(1); //去掉问号
        // var pa = params.split("&");
        // var s = new Object();
        // for (var i = 0; i < pa.length; i++) {
        //     s[pa[i].split("=")[0]] = unescape(pa[i].split("=")[1]);
        // }
        // window.onload = function () {
        //     webRtcServer = new WebRtcStreamer("video", "http://127.0.0.1:8000");
        //     webRtcServer.connect(s.data);
        //     webRtcServer.disconnect();
        // }
        // window.onbeforeunload = function () {
        //     webRtcServer.disconnect();
        // }
        function change() {
            var url = 'https://www.baidu.com/';

            window.location.href = "openIE:" + url;
            window.open(url,"windowName",
                "menubar=1,toolsbar=1,statusbar=1,Height=screen.availHeight,Width=screen.availWidth");
        }

    </script>

</head>
<body>
<button onclick="change()" value="11111">

</button>
<video id="video" style="width: 100%;height: 100%;" autoplay muted/>
</body>
</html>

